import Vue from 'vue'
import Router from 'vue-router'
import LoginCn from '@/components/LoginCn'
import LoginEn from '@/components/LoginEn'
import HookTest from '@/components/HookTest'
import MessageCenter from '@/components/MessageCenter';

// 相当于小数点，只不过不用写文件名后缀,且@符号一眼就能看出指向的是是文件根路径下的一个组件

Vue.use(Router)

export default new Router({
  mode: "history",//去掉#号（关闭hash mode模式）
  routes: [
    {
      path: '/loginEn',
      name: 'LoginEn',
      component: LoginEn
    },
    {
      path: '/loginCn',
      name: 'LoginCn',
      component: LoginCn,
      meta: {
        loginMsg: "登录"
      }
    },
    {
      path: '/hook',
      name: 'HookTest',
      component: HookTest
    }
    ,
    {
      path: '/message',
      name: 'MessageCenter',
      component: MessageCenter
    }
  ]
})

